<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>修改个人</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/welcome.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/first.css" />
</head>

<body>
	<nav class="nav navbar navbar-inverse navbar-static-top"
		role="navigation">
		<div class="container">
			<div class="navbar-header">
				<a href="welcome.html" class="navbar-brand">梦三科技</a>
			</div>
			<ul class="nav navbar-nav navbar-static-top">
				<li class="active"><a
					href="${pageContext.request.contextPath}/user/blog.do">动态</a></li>
				<li><a href="#">|</a></li>
				<li><a href="${pageContext.request.contextPath}/user/help.do">救急</a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="navbar-text"><input type="text" name="input"
					id="input" value="输入内容" /></li>
				<li class="navbar-btn btn btn-danger btn-sm">站内搜索</li>
			</ul>
		</div>
	</nav>
	<div class="row">


		<div class="content clearfix">
			<div class="left-col slidebar col-lg-3">
				<div class="img">
					<img src="${pageContext.request.contextPath}/img/head1.jpg"
						width="100%" height="100%" alt="头像" class="img-circle " />
				</div>
				<ul>
					<li><button class="btn btn-danger btn-block">
							<a href="${pageContext.request.contextPath}/user/alter.do">修改个人</a>
						</button></li>
					<li><button class="btn btn-danger btn-block">
							<a href="${pageContext.request.contextPath}/user/myblog.do">我的动态</a>
						</button></li>
					<li><button class="btn btn-danger btn-block">
							<a href="${pageContext.request.contextPath}/user/myhelp.do">我的救急</a>
						</button></li>
				</ul>
			</div>

			<div class="right-col col-lg-9">
				<div class="content">
					<form action="${pageContext.request.contextPath}/user/alter.do"
						method="post" class="form">
						<div class="form-group text-center">
							<img src="${pageContext.request.contextPath}/img/head1.jpg"
								/ class="img-circle center-block">
						</div>
						<div class="form-group text-center">
							<button class="btn btn-danger btn-lg">修改头像</button>
						</div>
						<div class="form-group">
							用户名：<input type="text" id="uname"
								placeholder="${displayuser.uname}" name="uname" value="请修改用户"
								class="form-control" />
						</div>
						<div class="form-group">
							密码：<input type="text" placeholder="${displayuser.upsd}" value=""
								id="upsd" name="upsd" value="请修改密码" class="form-control" />
						</div>
						<div class="form-group">
							确认密码：<input type="text" id="uname" value="请确认密码"
								class="form-control" />
						</div>
						<div class="form-group">
							爱好：
							<table>
								<c:forEach items="${hobbylist}" var="hobby">
									<tr>
										<td>${hobby.hinfo}</td>
							<td><button  onclick="location.href='${pageContext.request.contextPath}/user/deletehobby.do?hid=${hobby.hid}'" 
							class="btn btn-danger btn-sm">删除</button></td>
									</tr>
								</c:forEach>
							</table>
							<button class="btn btn-danger btn-sm">删除</button>
						</div>
						<div class="form-group text-right">
							<input type="submit" value="提交" class="btn btn-danger" />
							<button class="btn btn-danger">返回</button>
						</div>
					</form>
				</div>
			</div>
		</div>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
		<script type="text/javascript"></script>
</body>

</html>